3.79 \(\int \frac {1}{4-2 \sqrt {3} x+x^2} \, dx\)

Optimal. Leaf size=12 \[ -\tan ^{-1}\left (\sqrt {3}-x\right ) \]

[Out]

arctan(x-3^(1/2))

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {618, 204} \[ -\tan ^{-1}\left (\sqrt {3}-x\right ) \]

Antiderivative was successfully verified.

[In]

Int[(4 - 2*Sqrt[3]*x + x^2)^(-1),x]

[Out]

-ArcTan[Sqrt[3] - x]

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rubi steps

\begin {align*} \int \frac {1}{4-2 \sqrt {3} x+x^2} \, dx &=-\left (2 \operatorname {Subst}\left (\int \frac {1}{-4-x^2} \, dx,x,-2 \sqrt {3}+2 x\right )\right )\\ &=-\tan ^{-1}\left (\sqrt {3}-x\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 12, normalized size = 1.00 \[ -\tan ^{-1}\left (\sqrt {3}-x\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(4 - 2*Sqrt[3]*x + x^2)^(-1),x]

[Out]

-ArcTan[Sqrt[3] - x]

________________________________________________________________________________________

fricas [A]  time = 0.90, size = 8, normalized size = 0.67 \[ \arctan \left (x - \sqrt {3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4+x^2-2*x*3^(1/2)),x, algorithm="fricas")

[Out]

arctan(x - sqrt(3))

________________________________________________________________________________________

giac [A]  time = 0.41, size = 8, normalized size = 0.67 \[ \arctan \left (x - \sqrt {3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4+x^2-2*x*3^(1/2)),x, algorithm="giac")

[Out]

arctan(x - sqrt(3))

________________________________________________________________________________________

maple [A]  time = 0.10, size = 9, normalized size = 0.75 \[ \arctan \left (x -\sqrt {3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(4+x^2-2*3^(1/2)*x),x)

[Out]

arctan(x-3^(1/2))

________________________________________________________________________________________

maxima [A]  time = 2.97, size = 8, normalized size = 0.67 \[ \arctan \left (x - \sqrt {3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4+x^2-2*x*3^(1/2)),x, algorithm="maxima")

[Out]

arctan(x - sqrt(3))

________________________________________________________________________________________

mupad [B]  time = 0.27, size = 8, normalized size = 0.67 \[ \mathrm {atan}\left (x-\sqrt {3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^2 - 2*3^(1/2)*x + 4),x)

[Out]

atan(x - 3^(1/2))

________________________________________________________________________________________

sympy [A]  time = 0.16, size = 7, normalized size = 0.58 \[ \operatorname {atan}{\left (x - \sqrt {3} \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(4+x**2-2*x*3**(1/2)),x)

[Out]

atan(x - sqrt(3))

________________________________________________________________________________________